{extend name="index@common/base"/} 
{block name="style"}
{/block} {block name="body"}
<div class="layui-body layui-tab-content index-body" id="cont">
	<div class="park-navigation">
		<div class="navigation-icon">
			<i class="fa {$breadCrumb[0]['icon']}"></i>
		</div>
		<div class="navigation-menu">
			<h2>{$breadCrumb[0]['title']}</h2>
			{if isset($breadCrumb[1])}
			<p>{$breadCrumb[0]['remark']}</p>
			{/if}
		</div>
	</div>
	<div class="park-content">
		<div class="content-title">
			<div class="title col-9">
				<h3>{$breadCrumb[1]['title']}</h3>
				<form class="layui-form" action="{:url('inspection/record/search')}" onsubmit="return false;">
					<button class="search-btn" lay-submit lay-filter="search"><img src="__STATIC__/img/base/topsearch01.png"></button>
					<input class="search-input" name="keyword" type="text" placeholder="项目名称" id="keyword"  autocomplete="off">
					<select name="enterpriseId">
						<option value="">单位</option>
						{volist name="enterpriseList" id="item"}
						<option value="{$key}">{$item}</option>
						{/volist}
					</select>
					<div class="date-duration">
						<div class="layui-input-inline">
							<input type="text" name="start" id="start" autocomplete="off" class="search-input" placeholder="反馈时间">
						</div>
						<div class="layui-input-inline">
							<span>--</span>
						</div>
						<div class="layui-input-inline">
							<input type="text" name="end" id="end" autocomplete="off" class="search-input" placeholder="反馈时间">
						</div>
					</div>
				</form>	
			</div>
			<div class="tool col-1">
				<button id="reload"><i class="fa fa-refresh"></i></button>
			</div>
		</div>
		<table class="layui-hide" id="record" lay-filter="record" data-url="{:url('inspection/record/index')}"></table>
	</div>
</div>
{/block}
{block name="script"}

<script type="text/javascript" src="__JS__/inspection/record.js"></script>

<script type="text/html" id="missionTemplate">
	{{# if (d.mission){ }}
		<p><b>巡检任务：</b> &nbsp;{{d.mission.title}}</p>
       	<p><b>巡检区域：</b> &nbsp;{{d.mission.rangeDesc}}</p>
	{{# } }}
</script>

<script type="text/html" id="itemTemplate">
	{{# if (d.item){ }}
		<p><b>巡检项目：</b> &nbsp;{{d.item.patrolPoint}}</p>
       	<p><b>巡检对象：</b> &nbsp;{{d.item.inspectionObject}}</p>
 		<p><b>巡检项目：</b> &nbsp;{{d.item.inspectItem}}</p>
		<p><b>巡检周期：</b> &nbsp;{{d.item.cycleId}}</p>
	{{# } }}
</script>

<script type="text/html" id="operationTemplate">
	{{# if (d.user){ }}
		<p><b>{{d.user.userName}}</b></p>
	{{# } }}
</script>
<script type="text/html" id="statusTemplate">
	{{# if (d.status == 0){ }}
		<p><span class="layui-badge-circle layui-bg-red"><i class="fa fa-exclamation-triangle"></i></span></p>
	{{# } }}
	{{# if (d.status == 1){ }}
		<p><span class="layui-badge-circle layui-bg-green"><i class="fa fa-check"></i></span></p>
	{{# } }}
</script>
{/block}

